package com.x52im.rainbowchat.http.logic.dto;

import java.sql.Timestamp;
import java.util.Objects;

public class AlipayCertverifyDTO {
    private int id;
    private String alipayUserId;
    private int userUid;
    private String userName;
    private String certNo;
    private String certType;
    private String mobile;
    private String logonId;
    private String extInfo;
    private Timestamp createDate;
    private String cBizReqXml;
    private String cBizRespXml;
    private Timestamp cBizReqDate;
    private Timestamp cBizRespDate;
    private String verifyId;
    private String cGrantReqXml;
    private String cGrantRespXml;
    private Timestamp cGrantReqDate;
    private Timestamp cGrantRespDate;
    private String authCode;
    private String accessToken;
    private String cCertReqXml;
    private String cCertRespXml;
    private Timestamp cCertReqDate;
    private Timestamp cCertRespDate;
    private String cCertRespCode;
    private String cCertRespMsg;
    private String cCertRespPassed;
    private String targetId;

    public String getTargetId() {
        return targetId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAlipayUserId() {
        return alipayUserId;
    }

    public void setAlipayUserId(String alipayUserId) {
        this.alipayUserId = alipayUserId;
    }

    public int getUserUid() {
        return userUid;
    }

    public void setUserUid(int userUid) {
        this.userUid = userUid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getCertNo() {
        return certNo;
    }

    public void setCertNo(String certNo) {
        this.certNo = certNo;
    }

    public String getCertType() {
        return certType;
    }

    public void setCertType(String certType) {
        this.certType = certType;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getLogonId() {
        return logonId;
    }

    public void setLogonId(String logonId) {
        this.logonId = logonId;
    }

    public String getExtInfo() {
        return extInfo;
    }

    public void setExtInfo(String extInfo) {
        this.extInfo = extInfo;
    }

    public Timestamp getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Timestamp createDate) {
        this.createDate = createDate;
    }

    public String getcBizReqXml() {
        return cBizReqXml;
    }

    public void setcBizReqXml(String cBizReqXml) {
        this.cBizReqXml = cBizReqXml;
    }

    public String getcBizRespXml() {
        return cBizRespXml;
    }

    public void setcBizRespXml(String cBizRespXml) {
        if (cBizRespXml.length() > 4000) {
            cBizRespXml = cBizRespXml.substring(0, 4000);
        }
        this.cBizRespXml = cBizRespXml;
    }

    public Timestamp getcBizReqDate() {
        return cBizReqDate;
    }

    public void setcBizReqDate(Timestamp cBizReqDate) {
        this.cBizReqDate = cBizReqDate;
    }

    public Timestamp getcBizRespDate() {
        return cBizRespDate;
    }

    public void setcBizRespDate(Timestamp cBizRespDate) {
        this.cBizRespDate = cBizRespDate;
    }

    public String getVerifyId() {
        return verifyId;
    }

    public void setVerifyId(String verifyId) {
        this.verifyId = verifyId;
    }

    public String getcGrantReqXml() {
        return cGrantReqXml;
    }

    public void setcGrantReqXml(String cGrantReqXml) {
        if (cGrantReqXml.length() > 4000) {
            cGrantReqXml = cGrantReqXml.substring(0, 4000);
        }
        this.cGrantReqXml = cGrantReqXml;
    }

    public String getcGrantRespXml() {
        return cGrantRespXml;
    }

    public void setcGrantRespXml(String cGrantRespXml) {
        if (cGrantRespXml.length() > 4000) {
            cGrantRespXml = cGrantRespXml.substring(0, 4000);
        }
        this.cGrantRespXml = cGrantRespXml;
    }

    public Timestamp getcGrantReqDate() {
        return cGrantReqDate;
    }

    public void setcGrantReqDate(Timestamp cGrantReqDate) {
        this.cGrantReqDate = cGrantReqDate;
    }

    public Timestamp getcGrantRespDate() {
        return cGrantRespDate;
    }

    public void setcGrantRespDate(Timestamp cGrantRespDate) {
        this.cGrantRespDate = cGrantRespDate;
    }

    public String getAuthCode() {
        return authCode;
    }

    public void setAuthCode(String authCode) {
        this.authCode = authCode;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getcCertReqXml() {
        return cCertReqXml;
    }

    public void setcCertReqXml(String cCertReqXml) {
        this.cCertReqXml = cCertReqXml;
    }

    public String getcCertRespXml() {
        return cCertRespXml;
    }

    public void setcCertRespXml(String cCertRespXml) {
        if (cCertRespXml.length() > 4000) {
            cCertRespXml = cCertRespXml.substring(0, 4000);
        }
        this.cCertRespXml = cCertRespXml;
    }

    public Timestamp getcCertReqDate() {
        return cCertReqDate;
    }

    public void setcCertReqDate(Timestamp cCertReqDate) {
        this.cCertReqDate = cCertReqDate;
    }

    public Timestamp getcCertRespDate() {
        return cCertRespDate;
    }

    public void setcCertRespDate(Timestamp cCertRespDate) {
        this.cCertRespDate = cCertRespDate;
    }

    public String getcCertRespCode() {
        return cCertRespCode;
    }

    public void setcCertRespCode(String cCertRespCode) {
        this.cCertRespCode = cCertRespCode;
    }

    public String getcCertRespMsg() {
        return cCertRespMsg;
    }

    public void setcCertRespMsg(String cCertRespMsg) {
        this.cCertRespMsg = cCertRespMsg;
    }

    public String getcCertRespPassed() {
        return cCertRespPassed;
    }

    public void setcCertRespPassed(String cCertRespPassed) {
        this.cCertRespPassed = cCertRespPassed;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AlipayCertverifyDTO that = (AlipayCertverifyDTO) o;
        return id == that.id &&
                userUid == that.userUid &&
                Objects.equals(alipayUserId, that.alipayUserId) &&
                Objects.equals(userName, that.userName) &&
                Objects.equals(certNo, that.certNo) &&
                Objects.equals(certType, that.certType) &&
                Objects.equals(mobile, that.mobile) &&
                Objects.equals(logonId, that.logonId) &&
                Objects.equals(extInfo, that.extInfo) &&
                Objects.equals(createDate, that.createDate) &&
                Objects.equals(cBizReqXml, that.cBizReqXml) &&
                Objects.equals(cBizRespXml, that.cBizRespXml) &&
                Objects.equals(cBizReqDate, that.cBizReqDate) &&
                Objects.equals(cBizRespDate, that.cBizRespDate) &&
                Objects.equals(verifyId, that.verifyId) &&
                Objects.equals(cGrantReqXml, that.cGrantReqXml) &&
                Objects.equals(cGrantRespXml, that.cGrantRespXml) &&
                Objects.equals(cGrantReqDate, that.cGrantReqDate) &&
                Objects.equals(cGrantRespDate, that.cGrantRespDate) &&
                Objects.equals(authCode, that.authCode) &&
                Objects.equals(accessToken, that.accessToken) &&
                Objects.equals(cCertReqXml, that.cCertReqXml) &&
                Objects.equals(cCertRespXml, that.cCertRespXml) &&
                Objects.equals(cCertReqDate, that.cCertReqDate) &&
                Objects.equals(cCertRespDate, that.cCertRespDate) &&
                Objects.equals(cCertRespCode, that.cCertRespCode) &&
                Objects.equals(cCertRespMsg, that.cCertRespMsg) &&
                Objects.equals(cCertRespPassed, that.cCertRespPassed);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, alipayUserId, userUid, userName, certNo, certType, mobile, logonId, extInfo, createDate, cBizReqXml, cBizRespXml, cBizReqDate, cBizRespDate, verifyId, cGrantReqXml, cGrantRespXml, cGrantReqDate, cGrantRespDate, authCode, accessToken, cCertReqXml, cCertRespXml, cCertReqDate, cCertRespDate, cCertRespCode, cCertRespMsg, cCertRespPassed);
    }
}
